<#import "/spring.ftl" as spring/>
<#list contractList as contract>
<tr>
			<td><p class='table-No'>${(pageNo -1) * pageSize + contract_index+1}</p></td>
			<td><p class='table-dhddcjz'><#if contract.orderTypeCD??>${dict.getDictName(contract.orderTypeCD)}</#if></p></td>
            <td><p class='table-dhddhtddh linkBox' onclick="popup('900px','584px','${adminUri}/customization/order/contractDetail?contractId=${(contract.id)?c}')"><#if contract.contractNO??>${contract.contractNO}</#if></p></td>
            <td><p class='table-dhddkh'><#if contract.venderName??>${contract.venderName}</#if></p></td>
            <td><p class='table-dhddsl textRight'><#if contract.orderQuantity??>${contract.orderQuantity}<#else>0</#if></p></td>
            <td><p class='table-dhddsl textRight'><#if contract.dataCount??>${contract.dataCount}<#else>0</#if></p></td>
            <td><p class='table-dhddsl textRight'><#if contract.dataRate??>${(contract.dataRate)?string("#,##0.00")}<#else>0</#if>%</p></td>
            <td><p class='table-dhddzcrq'><#if contract.contractIssueDate??>${(contract.contractIssueDate)?string("yyyy-MM-dd")}</#if></p></td>
            <td><p class='table-dhddjhrq'><#if contract.contractDeliveryDate??>${(contract.contractDeliveryDate)?string("yyyy-MM-dd")}</#if><#if contract.contractDeliveryHDate??>&nbsp;/&nbsp;${(contract.contractDeliveryHDate)?string("yyyy-MM-dd")}</#if></p></td>
            <td><p class='table-dhddcjz'><#if contract.createBy.firstName??>${contract.createBy.firstName}</#if></p></td>
            <td><p class='table-dhddcjz'><#if contract.createDate??>${(contract.contractIssueDate)?string("yyyy-MM-dd")}</#if></p></td>
            <td><p class='table-dhddcjz'>
            <#if contract.orderQuantity??&&contract.cartonInfoAllQuantity??>
            	<#if contract.orderQuantity == contract.cartonInfoAllQuantity>
            		<@spring.message "contract_carton_complete"/>
	            <#else>
	            	<span style="color:red;"><@spring.message "contract_carton_notComplete"/></span>
	            </#if>
	        <#else>
	            <span style="color:red;"><@spring.message "contract_carton_notComplete"/></span>
            </#if>
            </p></td>
            <td><p class='table-dhddcjz'><#if contract.orderStatus??>${dict.getDictName(contract.orderStatus)}</#if></p></td>
            <td><p class='table-dhddcjz linkBox' onclick="window.location.href='${adminUri}/customization/order/order?contractID=${contract.id?c}&contractNo=${contract.contractNO}&imageFlag=customizationContract&contractDate=${(contract.contractIssueDate)?string("yyyy-MM-dd")}'"><@spring.message "contract_viewDetail"/></p></td>
</tr>
</#list>